﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using System.Web.Mvc;
using System.Data.EntityClient;
using Vit.CMS.Data;

namespace Vit.CMS
{
    public class Routes : AreaRegistration
    {
        public override string AreaName
        {
            get { return "CMS"; }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "CMS_Default",
                "CMS/{controller}/{action}/{id}",
                new { controller = "Home", action = "Index", id = "" },
                 new string[] { "Vit.CMS.Controllers" }
            );
        }
    }
}
